package com.java.grammer.constructer.exer1;

/**
 * @author luzhikun
 * @date 2020/12/5- 11:16
 */
public class CatTest_2 {
    public static void main(String[] args) {
        Cat_2 cat2 = new Cat_2(1, "小白", 4, "黄色");
        cat2.setAge(2);
        cat2.getSleep();
        System.out.println(cat2.getName() + " " + cat2.getAge() + " " + cat2.getLeg() + " " + cat2.color);
    }
}
